package winOrDie.Net.P2P;

import java.util.EventObject;

public class WoD_P2P_Control_Channel_Event extends EventObject {

	public static class Event_Types
	{
		/**
		 * Server events
		 */
		public static final int SERVER_JOIN_GAME = 1;
		public static final int SERVER_SELECT_SIDE = 2;
		public static final int SERVER_SELECT_ROL = 3;

		public static final int SERVER_LEAVE_GAME = 5;
		public static final int SERVER_READY_TO_GO = 6;
		public static final int SERVER_FORCE_START = 7;
		public static final int SERVER_CHANGE_MAP = 8;
		public static final int SERVER_CHANGE_TIME = 9;
		public static final int SERVER_READY_TO_GO_KO = 2222;
		public static final int SERVER_COUNT_DOWN = 2223;
		/**
		 * P2P server Layer events
		 */

		public static final int P2P_NEW_NODE = 51;
		public static final int P2P_NODE_DOWN = 52;
		public static final int P2P_I_AM_ROOT = 53;
		public static final int P2P_NEW_ROOT = 54;
		
		/**
		 * Common mensajes
		 */
		public static final int CHAT = 2004;
		
		public static final int CHANGE_MAP = 2005;
		
		public static final int GAME_ID = 69;
		
		
		public static final int CLIENT_JOIN_GAME_OK = 1001;
		public static final int CLIENT_JOIN_GAME_KO = 1002;
		
		public static final int CLIENT_SELECT_SIDE_OK = 1003;
		public static final int CLIENT_SELECT_SIDE_KO = 1004;
		public static final int CLIENT_SELECT_SIDE_INFO = 1005;
		
		public static final int CLIENT_SELECT_ROL_OK = 1006;
		public static final int CLIENT_SELECT_ROL_KO = 1007;
		public static final int CLIENT_SELECT_ROL_INFO = 1008;
		
		public static final int CLIENT_USER_INFO = 1009;
		public static final int CLIENT_GAME_INFO = 1010;
		
		public static final int CLIENT_LEAVE_GAME = 1011;
		
		public static final int CLIENT_READY_TO_GO = 1111;
		public static final int CLIENT_READY_TO_GO_KO = 1112;
		
		
		
		/**
		 * RT Control events
		 */
		
		public static final int RT_CLIENT_SYNC_INFO = 3001;
		
	
		
		/**
		 * P2P Layer events
		 */
	
		public static final int ERROR = 9090;

	}
	
	private int event_Type = -1;
	private Object data = null;
	
	public int getEvent_Type() {
		return event_Type;
	}
	public void setEvent_Type(int eventType) {
		event_Type = eventType;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public WoD_P2P_Control_Channel_Event(Object source) {
		super(source);
	}
}
